package com.hl.card.modular.packBack.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hl.card.modular.packBack.service.DateUpdateService;

@RestController
@RequestMapping("/api/DateUpdate")
public class DateUpdateController {
    @Autowired
    private DateUpdateService dateUpdateService;
	
	@RequestMapping("/update")
	public Object update()
	{
		dateUpdateService.updateDate();
		return "success";
	}
}
